package com.elink.enginerring.user.service;

import java.util.List;

import com.elink.enginerring.user.entity.User;
import com.elink.enginerring.user.entity.UserRole;

public interface IUserService {
	/**
	 * 登录
	 * @param phone
	 * @param pwd
	 * @return
	 */
	User getUserByNameAndPwd(String phone, String pwd);

	void updateSysUserPw(String userId, String md5DigestAsHex);

	/**
	 * 获取用户角色
	 * @param userId
	 * @return
	 */
	List<UserRole> selectRole(String userId);
}
